gdkmacosglcontext: fix compilation error
authorTom Schoonjans <Tom.Schoonjans@rfi.ac.uk>
Wed, 24 Mar 2021 10:07:55 +0000 (10:07 +0000)
committerTom Schoonjans <Tom.Schoonjans@rfi.ac.uk>
Wed, 24 Mar 2021 10:08:11 +0000 (10:08 +0000)
See https://developer.apple.com/documentation/appkit/nsopenglpixelformat/1436219-initwithattributes?language=occ

gdk/macos/gdkmacosglcontext.c

index a8b28b05be263e0987d4c4cd8b020d51d0563faa..b785beadc053af97f1482a74db17182c2b4d67a8 100644 (file)
@@ -103,8 +103,7 @@ create_pixel_format (int      major,
     NSOpenGLPFABackingStore,
     NSOpenGLPFAColorSize, 24,
     NSOpenGLPFAAlphaSize, 8,
-
-    (NSOpenGLPixelFormatAttribute)nil
+    0
   };
 
   if (major == 3 && minor == 2)